package com.yuanda.wordhot.exception;

/**
 * 公共的业务异常，所有util方法将返回此异常
 * 
 * @author YuBai
 * 
 */
public class BusinessException extends RuntimeException {
	private String errCode = "9999";
	/**
	 * 
	 */
	private static final long serialVersionUID = -1198192963458178630L;

	public BusinessException(Throwable cause) {
		super(cause);
	}

	public BusinessException(String errCode, String message) {
		super(message);
		this.errCode = errCode;
	}

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(String message, Throwable e) {
		super(message, e);
	}

	public BusinessException(String errCode, String message, Throwable e) {
		super(message, e);
		this.errCode = errCode;
	}

	public String getErrCode() {
		return this.errCode;
	}

}
